package com.juqimiao.linn.extension.mock.customer.commerce;

import com.juqimiao.linn.extension.Extension;
import com.juqimiao.linn.extension.mock.customer.Customer;
import com.juqimiao.linn.extension.mock.customer.CustomerSubscribeCheckExtPt;
import com.juqimiao.linn.transfer.Response;
import com.juqimiao.linn.transfer.query.builders.ResponseBuilder;

@Extension(
        Interface = CustomerSubscribeCheckExtPt.class,
        BusinessId = "CO")
public class CustomerSubscribeCheckCommerceExtension implements CustomerSubscribeCheckExtPt {
    @Override
    public Response checkAndSubscribe(Customer customer) {
        return ResponseBuilder.builder().success("CO").build();
    }
}
